-- GENERATED SPELL FOR [High Overlord Saurfang] --


function spell0_25256(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(16044,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25256', 624, 1)
end

function spell1_25256(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(24573,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25256', 5299, 1)
end

function spell2_25256(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(15749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25256', 636, 1)
end

function spell3_25256(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(14100,pUnit)
pUnit:RegisterEvent('Sorts_25256', 5262, 1)
end

function spell4_25256(pUnit, Event) --@Whirlwind,n/a--
pUnit:FullCastSpellOnTarget(41097,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25256', 15000, 1)
end

function spell5_25256(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(41098,pUnit)
pUnit:RegisterEvent('Sorts_25256', 618, 1)
end

function Sorts_25256(pUnit, Event)
local choix_sorts_25256 = math.random(0, 5)
if choix_sorts_25256 == 0 then
pUnit:RegisterEvent('spell0_25256', 1, 1)
end
if choix_sorts_25256 == 1 then
pUnit:RegisterEvent('spell1_25256', 1, 1)
end
if choix_sorts_25256 == 2 then
pUnit:RegisterEvent('spell2_25256', 1, 1)
end
if choix_sorts_25256 == 3 then
pUnit:RegisterEvent('spell3_25256', 1, 1)
end
if choix_sorts_25256 == 4 then
pUnit:RegisterEvent('spell4_25256', 1, 1)
end
if choix_sorts_25256 == 5 then
pUnit:RegisterEvent('spell5_25256', 1, 1)
end
end

function mob25256_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25256', math.random(1500, 3000), 1)
end

function mob25256_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25256_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25256_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25256, 1, 'mob25256_Action')
RegisterUnitEvent(25256, 2, 'mob25256_Leave')
RegisterUnitEvent(25256, 3, 'mob25256_Kill')
RegisterUnitEvent(25256, 4, 'mob25256_Die')
